﻿using System;
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Reflection;

namespace Concordia.Models._Alert
{
    public partial class AlertContextDataContext
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="lOAN_KEY"></param>
        /// <param name="nOW"></param>
        /// <returns></returns>
        [FunctionAttribute(Name = "dbo.WEB_SEL_CS_MAIN_ALERT")]
        public ISingleResult<WEB_SEL_CS_MAIN_ALERTResult> WEB_SEL_CS_MAIN_ALERT_MANUAL(
            [ParameterAttribute(Name = "LOAN_KEY", DbType = "Int")] int? lOAN_KEY,
            [ParameterAttribute(Name = "NOW", DbType = "DateTime")] DateTime? nOW)
        {
            IExecuteResult result = ExecuteMethodCall(this, ((MethodInfo) (MethodBase.GetCurrentMethod())), lOAN_KEY,
                                                      nOW);
            if (result != null) return ((ISingleResult<WEB_SEL_CS_MAIN_ALERTResult>) (result.ReturnValue));
            return null;
        }
    }
}